package BinSearchTree;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2024-05-25
 * Time: 17:41
 */
public class Test {
    public static void main(String[] args) {
        BinarySearchTree btree = new BinarySearchTree();
//        btree.insert(10);
        btree.insert(20);
        btree.insert(2);
        btree.insert(26);
        btree.insert(22);

        btree.insert(100);
        btree.insert(200);
        System.out.println(btree.search(10));
        System.out.println(btree.search(100));
        System.out.println(btree.search(2));
        System.out.println(btree.search(200));
        btree.remove(26);
        System.out.println();
    }
}
